ERL = erl
REBAR = rebar3

all: compile

compile:
	@$(REBAR) compile

get-deps:
	@$(REBAR) upgrade

deps:
	@$(REBAR) compile

.PHONY: clean
clean:
	@$(REBAR) clean

eunit:
	@$(REBAR) eunit

run: compile
	@$(ERL) \
		-pa _build/default/lib/shield_words/ebin \
		-s shield_words start

.PHONY: test
test: eunit
	@$(ERL) -make
	@$(ERL) -noshell \
		-pa _build/test/lib/shield_words/ebin \
		-s shield_test run \
		-s init stop

show:
	@echo $(OS)

